let vm=new Vue({
    el:"#app",
    data:{
    //currentIndex用来保存被点击的下标
       currentIndex:0,
      currentIndex1: 0,
       list:[
            {name:'综合排序'},
            {name: '距离最近'},
            {name: '销量最高'},
            {name: '筛选'},
           ],

        hot: [
          {name1:'年贷节热卖'},
          {name1: '津贴联盟'},
          {name1: '满减优惠'},
          {name1: '品质联盟'},
        ],
        arr2: [
          { pic: '2.jbw.jpg', title: '金百万烤鸭(苏家坨店)',wjx:4.3, num: 1632, price:20, cond: 3, time:47,juli:3.9},
          { pic: '2.jz.jpg', title: '稻香金源饺子馆', wjx: 4.3, num:230,price:20, cond:3.5, time:44,juli:2.5},
    
      ],
       list2: [
        { name2: '首页' },
        { name2: '订单' },
        { name2: '我的' },
       
      ]
        },
    methods: {
      handleClick(index){
        //将点击的下标保存到currentIndex
        this.currentIndex=index;
      },
      handleClick1(index) {
        //将点击的下标保存到currentIndex
        this.currentIndex1 = index;
      }
    }
})
